# 导入MySQL驱动:
import mysql.connector
# 注意把password设为你的root口令:
conn = mysql.connector.connect(user='root', password='2022212078', database='LongSir')
cursor = conn.cursor()
cursor.execute('select * from login')
result = cursor.fetchall()
print(result)
cursor.close()
conn.close()
